% temporaryfolder=addbs(oprop.appstartpath)+[temp\] *temporaryfolder=[temp\] fromdate=orequest.form('datefrom') todate=orequest.form('dateto') if isnull(fromdate) fromdate=NVL(orequest.querystring('datefrom'),'') endif if isnull(todate) todate=NVL(orequest.querystring('dateto'),'') endif theaccode=orequest.form('ac') if isnull(theaccode) theaccode=orequest.querystring('ac') endif theaccode=transform(theaccode) if val(theaccode)=0 return '
| DATE | VTP | TR# | DETAILS | DEBIT | CREDIT | BALANCE |
|---|---|---|---|---|---|---|
| ]+transform(pdate1)+[ | ] glhead=glhead+[]+allt(transform([OPEN]))+[ | ] glhead=glhead+[] glhead=glhead+[ | OPENING BALANCE | ] glhead=glhead+[]+iif(openingbalance>0,TRANSFORM(openingbalance,'999,999,999,999.99'),[ ])+[ | ] glhead=glhead+[]+iif(openingbalance<0,TRANSFORM(abs(openingbalance),'999,999,999,999.99'),[ ])+[ | ] glhead=glhead+[]+TRANSFORM(closingbalance,'999,999,999,999.99')+[ |
| ]+transform(date)+[ | ] glhead=glhead+[]+allt(transform(vtype))+[ | ] glhead=glhead+[]+allt(transform(transid))+[ | ] glhead=glhead+[]+allt(transform(desc))+[ | ] glhead=glhead+[]+iif(debit-credit>0,TRANSFORM(debit-credit,'999,999,999,999.99'),[ ])+[ | ] glhead=glhead+[]+iif(credit-debit>0,TRANSFORM(credit-debit,'999,999,999,999.99'),[ ])+[ | ] glhead=glhead+[]+TRANSFORM(closingbalance,'999,999,999,999.99')+[ |
| BALANCE: | ] glhead=glhead+[]+iif(THEDEBITS>0,TRANSFORM(THEDEBITS,'999,999,999,999.99'),[ ])+[ | ] glhead=glhead+[]+iif(thecredits>0,TRANSFORM(thecredits,'999,999,999,999.99'),[ ])+[ | ] glhead=glhead+[]+TRANSFORM(OVERALL,'999,999,999,999.99')+[ | |||
